package com.pig4cloud.pig.order.api.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Schema(description = "订单信息对象")
public class TrOrder {
	@TableId(value = "order_id",type = IdType.ASSIGN_ID )
	@Schema(description = "订单id")
	private Long orderId;

	@Schema(description = "订单号")
	private String orderNumber;

	@Schema(description = "用户ID")
	private Long userId;

	@Schema(description = "行程单号")
	private String tripNumber;

	@Schema(description = "客户姓名")
	private String cusName;

	@Schema(description = "地陪ID")
	private Long guideId;

	@Schema(description = "定制师ID")
	private Long tailotrId;

	@Schema(description = "客户手机号")
	private String cusTel;

	@Schema(description = "字典类型")
	private String orStatus;

	@Schema(description = "删除标记,1:已删除,0:正常")
	private String delFlag;

	@Schema(description = "创建人")
	private String createBy;

	@Schema(description = "修改人")
	private String updateBy;

	@Schema(description = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;


	@Schema(description = "更新时间")
	@TableField(fill = FieldFill.UPDATE)
	private LocalDateTime updateTime;


	@Schema(description = "备注信息")
	private String remark;

	@Schema(description = "订单金额")
	private BigDecimal orderAmount;

}
